-- Winter Anathema (c) v.v.balashoff
-- TODO www remove? clean?
--local CoreEntity = require('leviathan/ECS/Core/CoreEntity')
local Domain = require('leviathan/ECS/Domain')
--local ScriptComponent = require('leviathan/ECS/Core/Components/ScriptComponent')
--local ScriptSystem = require('leviathan/ECS/Core/Systems/ScriptSystem')

local DomainCore = Domain:derive('Core')

function DomainCore:new(world)
    -- call parent constructor
    DomainCore.super.new(self, world, 'Core')
    self.priority = 2
    -- TODO www remove
--    -- components
--    local script = ScriptComponent('ScriptComponent')
    -- systems
--    local scriptSystem = ScriptSystem(self)
--    DomainCore:addSystem(self, scriptSystem)
end

--function DomainCore:runScript(path)
--    -- TODO www
--    print('RUNNING SCRIPT: '..path)
--    dofile(path)
--end

return DomainCore
